package gamemaster;

import java.util.ArrayList;
import java.util.List;

import communication.message.GameState;
import communication.message.Point;

/***
 * 
 * @author Łukasz Wrzesiński
 * 
 */

public class Board {
	private List<Point> points;

	public Board() {
		points = new ArrayList<Point>();
		points.add(new Point(0, 0));
	}

	public List<Point> getPoints() {
		return points;
	}

	public GameState toGameState() {
		GameState gs = new GameState();
		for (Point point : points)
			gs.addPoint(point);
		return gs;
	}

	public void addPoint(Point p) {
		points.add(p);
	}

	public void setPoints(List<Point> _p) {
		points = _p;
	}

}
